package com.myalibaba.nacos.bean;
import java.io.Serializable;
import java.util.Map;

public class FeignUtil implements Serializable {

    public static final String FEIGN_NAME = "YIXIEKEJI";
    public static final String FEIGN_NAME_LOG    = "YIXIEKEJI-LOG";
    public static final String FEIGN_NAME_ITEM   = "YIXIEKEJI-ITEM";
    public static final String FEIGN_NAME_INDEX  = "YIXIEKEJI-INDEX";
    public static final String FEIGN_NAME_MEMBER = "YIXIEKEJI-MEMBER";
    public static final String FEIGN_NAME_ORDER  = "YIXIEKEJI-ORDER";
    public static final String FEIGN_NAME_SHOP   = "YIXIEKEJI-SHOP";
    private Map<String, String> queryMap;
    private PagerInfo pager;
    private Map<String, Object> queryMapObject;

    public FeignUtil() {
    }

    public static FeignUtil getFeignUtil() {
        return new FeignUtil();
    }

    public static FeignUtil getFeignUtil(Map<String, String> queryMap, PagerInfo pager) {
        FeignUtil feignUtil  = new FeignUtil();
        feignUtil.setQueryMap(queryMap);
        feignUtil.setPager(pager);
        return feignUtil;
    }

    public static FeignUtil getFeignUtilObject(Map<String, Object> queryMap, PagerInfo pager) {
        FeignUtil feignUtil  = new FeignUtil();
        feignUtil.setQueryMapObject(queryMap);
        feignUtil.setPager(pager);
        return feignUtil;
    }
    public static FeignUtil getFeignUtilWithoutPage(Map<String, String> queryMap) {
        FeignUtil feignUtil  = new FeignUtil();
        feignUtil.setQueryMap(queryMap);
        return feignUtil;
    }
    public static FeignUtil getFeignUtilObjectWithoutPage(Map<String, Object> queryMap) {
        FeignUtil feignUtil  = new FeignUtil();
        feignUtil.setQueryMapObject(queryMap);
        return feignUtil;
    }



    public Map<String, String> getQueryMap() {
        return queryMap;
    }

    public void setQueryMap(Map<String, String> queryMap) {
        this.queryMap = queryMap;
    }

    public PagerInfo getPager() {
        return pager;
    }

    public void setPager(PagerInfo pager) {
        this.pager = pager;
    }

    public Map<String, Object> getQueryMapObject() {
        return queryMapObject;
    }

    public void setQueryMapObject(Map<String, Object> queryMapObject) {
        this.queryMapObject = queryMapObject;
    }

}
